import('./style.scss')
export const MessageBoxResult = {
  confirm: ((message: string, title: string, option = {}) => {
    return ElMessageBox.confirm(
      message, title,
      {
        customClass: 'elc_message-box-result',
        center: true,
        showClose: false,
        closeOnClickModal: false,
        ...option
      }
    )
  }) as any as typeof ElMessageBox.confirm,

  alert: ((message: string, title: string, option = {}) => {
    return ElMessageBox.alert(
      message, title,
      {
        customClass: 'elc_message-box-result',
        center: true,
        showClose: false,
        closeOnClickModal: false,
        ...option
      }
    )
  }) as any as typeof ElMessageBox.alert
}
